from django.conf.urls import patterns, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
#import settings

from member import views
from django.views.generic.base import RedirectView

urlpatterns = patterns('',
    #url(r'^$', views.index, name='index'), 
    url(r'^validate/', views.validate, name='validate'),
    url(r'^signUpForm/', views.signUpForm, name='signUpForm'),
    url(r'^shopperSignUp/confirm/(?P<user_id>\w+)/(?P<confirmation_key>\w+)/', views.confirm_sign_up, name='confirm_sign_up'),
    url(r'^shopperSignUp/', views.shopperSignUp, name='shopperSignUp'),
    url(r'^shopperSignUpForm/', views.shopperSignUpForm, name='shopperSignUpForm'),
    url(r'^logout/', views.logoutted, name='logoutted'),
    url(r'^lang/set/', views.lang_set, name='lang_set'),
    url(r'^myAccount/', views.my_account, name='my_account'),
    url(r'^shopper/profile/', views.shopper_my_profile, name='shopper_my_profile'),
    url(r'^shopper/saveProfile/', views.save_shopper_profile, name='save_shopper_profile'),
    url(r'^shopper/points/buy/', views.points_buy, name='points_buy'),
    url(r'^shopper/requestFulFill/(?P<request_id>\w+)/', views.request_fulfill, name='request_fulfill'),
    url(r'^merchant/profile/', views.my_profile, name='my_profile'),
    url(r'^merchant/bank/action/update/', views.bank_update, name='bank_update'),
    url(r'^merchant/bank/(?P<user_id>\w+)/', views.my_bank, name='my_bank'),
    url(r'^merchant/payment/cancel/(?P<payment_id>\w+)/', views.payment_cancel, name='payment_cancel'),
    url(r'^merchant/payment/submit/', views.payment_submit, name='payment_submit'),
    url(r'^merchant/payment/', views.payment_request_form, name='payment_request_form'),
    url(r'^api/merchant/profile/list/', views.list_marchants_api, name='list_marchants_api'),
    url(r'^api/merchant/profile/get/(?P<user_id>\w+)/', views.merchant_profile_get_api, name='merchant_profile_get_api'),
    url(r'^api/shopper/signUp/list/', views.shopper_sign_up_api, name='shopper_sign_up_api'),
    url(r'^api/merchant/signUp/', views.merchant_sign_up_api, name='merchant_sign_up_api'),
    url(r'^api/login/', views.login_api, name='login_api'),
    url(r'^api/logout/', views.logout_api, name='logout_api'),
    url(r'^merchant/saveProfile/', views.save_merchant_profile, name='save_merchant_profile'),
    url(r'^signUp/confirm/(?P<user_id>\w+)/(?P<confirmation_key>\w+)/', views.confirm_sign_up, name='confirm_sign_up'),
    url(r'^signUp/', views.signUp, name='signUp'),
    url(r'^merchant/image/action/delete/', views.image_action_delete, name='image_action_delete'),
    url(r'^request/create/(?P<sender_user_id>\w+)/(?P<receiver_user_id>\w+)/', views.create_request, name='display_profile_shopper'),
    url(r'^requests/view', views.requests_view, name='requests_view'),
    url(r'^profile/approval/view/(?P<profile_id>\w+)/', views.profile_approval_view_by_id, name='profile_approval_view_by_id'),
    url(r'^profile/approval/view/', views.profile_approval_view, name='profile_approval_view'),
    url(r'^request/approve/(?P<request_id>\w+)/', views.request_approve, name='request_approve'),
    url(r'^profile/approve/(?P<profile_id>\w+)/', views.profile_approval_approve, name='profile_approval_approve'),
    url(r'^profile/reject/(?P<profile_id>\w+)/', views.profile_reject, name='profile_reject'),
    url(r'^request/approveAsset/(?P<request_id>\w+)/', views.request_approve_asset, name='request_approve_asset'),
    url(r'^request/rejectAsset/(?P<request_id>\w+)/', views.request_reject_asset, name='request_reject_asset'),
    url(r'^request/accept/(?P<request_id>\w+)/', views.request_accept, name='request_accept'),
    url(r'^request/rejectAdmin/(?P<request_id>\w+)/', views.request_reject_admin, name='request_accept'),
    url(r'^request/rejectMerchant/(?P<request_id>\w+)/', views.request_reject_merchant, name='reject_merchant'),
    url(r'^request/buy/(?P<request_id>\w+)/', views.request_buy, name='request_buy'),
    url(r'^request/send/(?P<request_id>\w+)/', views.request_send, name='request_send'),
    url(r'^points/credit/', views.points_credit, name='points_credit'),
    url(r'^points/payment/', views.points_payment, name='points_payment'),

    #url(r'^static/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_ROOT}),
)
